import {
  axios
} from '@/utils/request'
// 配置文件列表
function getConfigFileList (data) {
  return axios({
    url: '/software-service/configVersion/list',
    method: 'get',
    params: data
  })
}
// 新增配置文件
function addConfigFile (data) {
  return axios({
    url: '/software-service/configVersion',
    method: 'post',
    data
  })
}
// 编辑配置文件
function editConfigFile (data) {
  return axios({
    url: '/software-service/configVersion',
    method: 'put',
    data
  })
}
// 删除配置文件
function deleteConfigFile (data) {
  return axios({
    url: '/software-service/configVersion',
    method: 'delete',
    data
  })
}
// 配置文件详情
function configFileDetail (params) {
  return axios({
    url: '/software-service/configVersion/info',
    method: 'get',
    params
  })
}

// 配置文件下拉框

function configFileSelect (params) {
  return axios({
    url: '/software-service/configVersion/select',
    method: 'get',
    params
  })
}
export default {
  getConfigFileList,
  addConfigFile,
  editConfigFile,
  deleteConfigFile,
  configFileDetail,
  configFileSelect
}
